package com.example.bean;


import com.example.common.annotation.HandlerMapping;
import com.example.common.data.msg.MsgType;

import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class MsgHandlerMapping {
    private Map<MsgType,Method> mapping;

    public MsgHandlerMapping(){
        this.mapping = new ConcurrentHashMap<>();
    }

    public void inject(MsgType msgType, Method method) {
        mapping.put(msgType,method);
    }
}
